package cn.humaohua.study.yanmo_design_pattern.ch13.v3;

public class Main {
    public static void main(String[] args) {
        // 菜单
        ChopCommand chopCommand = new ChopCommand();
        PorkCommand porkCommand = new PorkCommand();
        DuckCommand duckCommand = new DuckCommand();

        // 服务员点菜
        Waiter waiter = new Waiter();
        waiter.orderDish(chopCommand);
        waiter.orderDish(duckCommand);
        waiter.orderDish(porkCommand);

        // 点菜结束
        waiter.orderOver();

        System.out.println("终于可以美美地吃一顿了");
    }
}
